import Request from '@/utils/request'

export const communityInfoPageGet = data => {
    return Request({
        url: '/communityInfo/page',
        method: 'post',
        data: data,
    })
}
export const communityInfoListGet = data => {
    return Request({
        url: '/communityInfo/list',
        method: 'post',
        data: data,
    })
}

export const communityInfoDelete = id => {
    return Request({
        url: '/communityInfo/delete/' + id,
        method: 'get',
    })
}

export const communityInfoOne = id => {
    return Request({
        url: '/communityInfo/one/' + id,
        method: 'get',
    })
}

export const communityInfoUpdate = data => {
    return Request({
        url: '/communityInfo/update',
        method: 'post',
        data: data
    })
}

export const communityInfoAdd = data => {
    return Request({
        url: '/communityInfo/save',
        method: 'post',
        data: data
    })
}
